<template>
    <view class="page-box">
        <header class="header row rowCenter verCenter">
            <image src="http://www.szxlyc.com/uploads/product/20240916/GxMjwpfYY3Z5DfjYUOUd3kWkPQctGYSf5SGVQjhM.png" mode="widthFix"></image>
        </header>
        <section class="section column rowCenter verCenter">
            <text class="t1" style="margin-bottom: 47rpx;">恭喜您！</text>
            <text class="t2" style="margin-bottom: 16rpx;">您的车辆最高可贷额度为</text>
            <text class="t3" style="margin-bottom: 26rpx;">{{car_valuation}}万</text>
            <text class="t2">您可联系您的专属金融顾问协助您申办产品。</text>
            <text class="line"></text>
            <text class="t4">您的车辆评估已完成，平台采用的是国内权威车辆评公司的系统数据，不会泄露您的任何信息。</text>
            <view class="btn row rowCenter verCenter" @click="close()">关 闭</view>
        </section>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                car_valuation: ''
            };
        },
        onLoad(options) {
            this.car_valuation = options.car_valuation || 0;
        },
        methods: {
            close() {
                if (typeof WeixinJSBridge !== "undefined") {
                    WeixinJSBridge.call('closeWindow');
                } else {
                    document.addEventListener('WeixinJSBridgeReady', function() {
                        WeixinJSBridge.call('closeWindow');
                    });
                }
            }
        }
    };
</script>

<style scoped lang="scss">
    @import '@/assets/css/order/success.scss';
</style>